package com.goods.business.service;

import com.goods.common.error.BusinessException;
import com.goods.common.vo.business.ProductStockVO;
import com.goods.common.vo.business.ProductVO;
import com.goods.common.vo.system.PageVO;

import java.util.List;
import java.util.Map;

public interface ProductService {
    PageVO<ProductVO> findProductList(Map<String,Object> queryMap);
    //添加物资资料
    void add(ProductVO productVO);
    //编辑物资资料
    ProductVO edit(Long id);
    //编辑物资资料
    void update(Long id, ProductVO productVO) throws BusinessException;
    //移入回收站
    void remove(Long id) throws BusinessException;
    //从回收站中恢复
    void back(Long id) throws BusinessException;
    //删除该物资资料
    void delete(Long id) throws BusinessException;
    //物资资料的审核
    void publish(Long id) throws BusinessException;
    //获取所有的物资列表
    PageVO<ProductStockVO> findProducts(Map<String, Object> queryMap);
    //获取所有物资的库存信息
    List<ProductStockVO> findAllStocks();
    //查询某个物资的库存饼状图和柱状图
    PageVO<ProductStockVO> findProductStocks(Map<String, Object> queryMap);
}
